package kr.hkit.powerjava.chapter09.Programming;

public class Plane {
	private static int planes;
	
	private String production;
	private String model;
	private int maxPassenger;
	
	public Plane() {
		Plane.planes++;
	}

	public Plane(int maxPassenger) {
		this.maxPassenger = maxPassenger;
		Plane.planes++;
	}

	public Plane(String model) {
		this.model = model;
		Plane.planes++;
	}
	
	public Plane(String model, int maxPassenger) {
		this.model = model;
		this.maxPassenger = maxPassenger;
		Plane.planes++;
	}

	public Plane(String production, String model, int maxPassenger) {
		this.production = production;
		this.model = model;
		this.maxPassenger = maxPassenger;
		Plane.planes++;
	}
	
	public String getProduction() {
		return production;
	}
	public void setProduction(String production) {
		this.production = production;
	}
	public String getModel() {
		return model;
	}
	public void setModel(String model) {
		this.model = model;
	}
	public int getMaxPassenger() {
		return maxPassenger;
	}
	public void setMaxPassenger(int maxPassenger) {
		this.maxPassenger = maxPassenger;
	}

	public static int getPlanes() {
		return planes;
	}

	@Override
	public String toString() {
		return "Plane [production=" + production + ", model=" + model
				+ ", maxPassenger=" + maxPassenger + "]";
	}
}
